<template>
  <div class="first_con">
    <template v-if="prizeDetail.accountState === '0'">
      <p class="first_title">恭喜您抽中一等奖</p>

      <p class="first_detail">
        请在7月22日 23:59:59 前填写支付宝信息 <br />车票核实后将为您打款报销
      </p>

      <van-divider />

      <AlipayForm :isInReward="false" />
    </template>

    <template v-if="prizeDetail.accountState === '1'">
      <p class="first_title">您的支付宝信息已填写</p>
      <div class="first_zone">
        <p class="first_bottom">活动结束后将核实车票为您打款报销</p>
        <p class="first_rules">
          7月22日 23:59:59前可在 我的奖品 修改支付宝信息
        </p>
      </div>

      <slot></slot>
    </template>
  </div>
</template>

<script>
import { Divider } from "vant";
import AlipayForm from "@/components/alipayForm";
export default {
  components: {
    [Divider.name]: Divider,
    AlipayForm
  },
  computed: {
    memberDetail() {
      return this.$store.state.mainPage.memberDetail;
    },
    prizeDetail() {
      return this.memberDetail.prizeDetail;
    }
  }
};
</script>

<style lang="scss" scoped>
@import "@/app.scss";

.first_con {
  text-align: center;
  padding-left: 10px;
  .first_title {
    font-size: 36px;
    font-weight: 800;
    color: #2e2d2b;
  }

  .first_detail {
    font-size: 28px;
    font-weight: 500;
    color: #666666;
    margin-top: 44px;
    line-height: 35px;
  }

  .first_bottom {
    font-size: 31px;

    font-weight: bold;
    color: #353535;
  }

  .first_zone {
    height: 256px;
    background: #f6f5f5;
    border-radius: 20px;
    margin: 50px 0;
    @include flex_config(center, center, column);

    .first_rules {
      font-size: 20px;
      margin-top: 43px;
      font-weight: 500;
      color: #666666;
    }
  }
}
</style>
